# $NetBSD: Makefile,v 1.7 2009/02/09 22:56:28 joerg Exp $

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../meta-pkgs/xfce4/Makefile.common"

XFCE4_VERSION=	0.3.100

DISTNAME=	exo-${XFCE4_VERSION}
PKGNAME=	xfce4-exo-${XFCE4_VERSION}
CATEGORIES=	x11
COMMENT=	Xfce extension library

DEPENDS+=	p5-URI>=0:../../www/p5-URI

PKGCONFIG_OVERRIDE+=	exo/exo-0.3.pc.in exo-hal/exo-hal-0.3.pc.in

PKG_SYSCONFSUBDIR=	xdg/xfce4
EGDIR=			${XFCE4_EGBASE}

USE_DIRS+=	xdg-1.4
MAKE_DIRS+=	${SYSCONFDIR:Q}
MAKE_DIRS+=	${EGDIR:Q} ${PREFIX:Q}/share/xfce4 ${PREFIX:Q}/share/xfce4/doc
.for f in C es fr id ja pt_BR tr
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/${f}
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/${f}/images
.endfor

CONF_FILES=		${EGDIR:Q}/helpers.rc ${PKG_SYSCONFDIR:Q}/helpers.rc
OWN_DIRS+=		${EGDIR}

PY_PATCHPLIST=		yes

.include "options.mk"

BUILDLINK_API_DEPENDS.libnotify+=	libnotify>=0.4.0

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../x11/libxfce4util/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
